package com.sca.commontest.test.designpattern.bridge.phonebrandcolor;

/**
 * @Author: denglei
 * @Date: 2022/1/7 15:24
 * @Description:
 */
public abstract class Color {
    Brand brand;
    private String name;

    public Color(Brand brand,String name) {
        this.brand = brand;
        this.name=name;
    }

   public void open() {
        brand.open(getName());
    }

    public void close() {
        brand.close(getName());
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}
